package com.qf.bbapi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.bbapi.dto.UserDataDto;
import com.qf.bbapi.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserDao extends BaseMapper<User> {
    @Update("update t_user set password=#{pass} where phone=#{phone}")
    int updatePass(@Param("phone")String phone,@Param("pass")String password);

    @Update("update t_user set phone=#{phone}, sex=#{sex},email=#{email},nickname=#{nickname} where id=#{id}")
    int updateData(@Param("phone") String phone,@Param("sex") int sex,@Param("email") String email,@Param("nickname") String nickname,@Param("id") int token);
}
